Is displaying image in php tough?

Is displaying image in php tough?

am 11.10.2007 17:16:56 von Chris Carter

I am trying to fetch the image from the database image field.

Fetching it from

$image=mysql_result($result,$i,"image");

And displaying it with:

.../stores-images/

I know it requires some if else or array to display. This is new for me.

Please help!

Chris
--
View this message in context: http://www.nabble.com/Is-displaying-image-in-php-tough--tf46 07902.html#a13158056
Sent from the Php - Database mailing list archive at Nabble.com.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Is displaying image in php tough?

am 12.10.2007 01:07:58 von Alexander

I'm assuming that you have the image uploaded into a directory on the
server.

All you need to do is have the html tags:

print ""

----- Original Message -----
From: "Chris Carter"
To:
Sent: Thursday, October 11, 2007 10:16 AM
Subject: [PHP-DB] Is displaying image in php tough?


>
> I am trying to fetch the image from the database image field.
>
> Fetching it from
>
> $image=mysql_result($result,$i,"image");
>
> And displaying it with:
>
> ../stores-images/
>
> I know it requires some if else or array to display. This is new for me.
>
> Please help!
>
> Chris
> --
> View this message in context:
> http://www.nabble.com/Is-displaying-image-in-php-tough--tf46 07902.html#a13158056
> Sent from the Php - Database mailing list archive at Nabble.com.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Is displaying image in php tough?

am 12.10.2007 01:25:10 von dmagick

Chris Carter wrote:
> I am trying to fetch the image from the database image field.
>
> Fetching it from
>
> $image=mysql_result($result,$i,"image");
>
> And displaying it with:
>
> ../stores-images/
>
> I know it requires some if else or array to display. This is new for me.

The second result in google was this:

http://www.wellho.net/solutions/php-example-php-form-image-u pload-store-in-mysql-database-retreive.html

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php